/*
 * Radio.h
 *
 *  Created on: Oct 16, 2014
 *      Author: andy
 */

#ifndef RADIO_H_
#define RADIO_H_

#include <iostream>

class Radio {
public:
	Radio(int f = -1);

    const char* getIdent() const {
        return ident;
    }

    int getRadial() const {
        return radial;
    }

    bool isValid() const {
        return valid;
    }

    void setFrequency(int f);

    friend std::ostream &operator<<(std::ostream &out, const Radio &r);

private:
    int radial;
    // Actual radial
    bool valid;
    // Signal is valid?
    char ident[4]; // Station identifier
};



#endif /* RADIO_H_ */
